package com.fitns.user.dto.organ;

import com.fitns.user.conf.Model;
import com.fitns.user.dto.user.RoleVO;
import com.fitns.user.model.organ.Organ;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

@Data
public class OrganVO extends Model implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("机构名称")
    private String name;

    @ApiModelProperty(" province:省 city:市 district:区 company:公司 area:区域 section:科室 group:分组")
    private String type;

    @ApiModelProperty("联系人")
    private String contactName;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("机构地址")
    private String address;

    @ApiModelProperty("父级id")
    private Long parentId;

    @ApiModelProperty("创建者")
    private Long createId;

    @ApiModelProperty("修改者")
    private Long modifyId;

    @ApiModelProperty("创建时间")
    private Timestamp inputTime;

    @ApiModelProperty("修改时间")
    private Timestamp modifyTime;

    @ApiModelProperty("描述")
    private String descs;

    @ApiModelProperty("层级")
    private int level;

    @ApiModelProperty("下级机构")
    List<OrganVO> subList;

    @ApiModelProperty("上级机构名称")
    private String parentOrganName;

    @ApiModelProperty("是否展示中转站")
    private Boolean isTransferStation;

    @ApiModelProperty("是否展示作业区域")
    private Boolean isWorkArea;

    private Long companyId;

    private String parentIds;

    private List<RoleVO> childRoleVOS;
}
